package vip.xiaonuo.common.consts;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public class DictConst<T> {

    private final String key;//字典
    private final T value;//值
    private final String name;//名称

    public static DictConst<Integer> YES_OR_NO_YES = new DictConst<>("YES_OR_NO", 1, "是");
    public static DictConst<Integer> YES_OR_NO_NO = new DictConst<>("YES_OR_NO", 0, "否");

    public static DictConst<Integer> USER_TYPE_ADMIN = new DictConst<>("USER_TYPE", 0, "管理员");
    public static DictConst<Integer> USER_TYPE_USER = new DictConst<>("USER_TYPE", 1, "前台用户");
}
